package com.yenlien.traceyun.business.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Created by LiuSha on 2020/7/28.
 * 订单明细
 */
@Entity
@Table(name = "t_clientorder_detailed")
public class ClientOrderDetailed extends TraceEntity {

    @Column(name = "order_id", length = 32)
    private String orderId;//订单Id

    @Column(name = "name", length = 50)
    private String name;//产品名称
    @Column(name = "specs", length = 10)
    private String specs;//规格
    @Column(name = "batch", length = 30)
    private String batch;//批号

    /**
     * 产品原批次
     */
    @Column(name = "source_batch", length = 30)
    private String sourceBatch;

    /**
     * 关联id (storagteId)
     */
    @Column(name = "relate_id", length = 32)
    private String relateId;

    @Column(name = "number", length = 10)
    private int number;//数量
    @Column(name = "unit", length = 10)
    private String unit;//单位
    @Column(name = "price", length = 10)
    private String price;//单价（元）
    @Column(name = "total_price", length = 10)
    private String totalPrice;//小计（元）

    /**
     * 客户名称
     */
    @Column(name = "client_name", length = 50)
    private String clientName;

    /**
     * 是否出货
     */
    @Column(name = "is_out", length = 1)
    private boolean isOut;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpecs() {
        return specs;
    }

    public void setSpecs(String specs) {
        this.specs = specs;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getSourceBatch() {
        return sourceBatch;
    }

    public void setSourceBatch(String sourceBatch) {
        this.sourceBatch = sourceBatch;
    }

    public String getRelateId() {
        return relateId;
    }

    public void setRelateId(String relateId) {
        this.relateId = relateId;
    }

    public boolean isOut() {
        return isOut;
    }

    public void setOut(boolean out) {
        isOut = out;
    }
}
